﻿@using CommonApp
@{
    Response.Expires = 0;
    Response.Cache.SetNoStore();
    Response.AppendHeader("Pragma", "no-cache");
}
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/LinksStyles.css")" rel="stylesheet" type="text/css"/>

    @*<link href="../../Content/datepicker.css" rel="stylesheet" type="text/css"/>*@
    @RenderSection("css", false)
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript" > </script> 
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>  
    @RenderSection("script", false)
    <script src="@Url.Content("~/Scripts/jquery.noty.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/top.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/default.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/links.js")" type="text/javascript"></script>

    @if (ViewBag.EnsureSecurity != null && (bool)ViewBag.EnsureSecurity)
    {
        <script src="@Url.Content("~/Scripts/securityCodeRequest.js")" type="text/javascript"></script>
    }
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>Welcome to IBank!</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    <li>@Html.ActionLink("Clients", "Index", "Clients", null, new { @class = "autodisabling" }).If(User.IsInRole("operator"))</li>
                    <li>@Html.ActionLink("Requests", "Index", "Requests", null, new { @class = "autodisabling" }).If(User.IsInRole("operator"))</li>
                    <li>@Html.ActionLink("Admission", "Register", "Admission").If(User.IsInRole("admin"))</li>
                    <li>@Html.ActionLink("Exchange Rates", "Index", "ExchangeRates", null, new { @class = "autodisabling" })</li>
                    <li>@Html.ActionLink("Current Rates", "Current", "ExchangeRates", null, new { @class = "autodisabling" })</li>
                    <li>@Html.ActionLink("Credit Check", "Index", "CreditCheck")</li>
                    <li>@Html.ActionLink("Calculator", "Index", "DepositCalculator")</li>
                </ul>
            </div>
        </div>
        <div id="main">
            <div class="logoContainer">
                <img src="../../Content/images/ibanklogo.jpg" width="100px" height="150px" />
            </div>
            @RenderBody()
        </div>
        <div id="footer">
        </div>
    </div>

    @{
        if (ViewBag.EnsureSecurity != null && (bool)ViewBag.EnsureSecurity)
        {
        <div id="securityCodeRequest" title="Security Code Check">
            <p>
                Please, enter code #@Html.Action("AskSecurityCode", "Security"):
            </p>
            <input id="codeValue" type="text" />
        </div>
        }
    }
</body>
</html>
